#!/bin/bash
currDir=`pwd`
tmpDir="/tmp/percona"
if [ ! -e $tmpDir ];then
    mkdir $tmpDir
fi
cd $tmpDir
wget -c https://www.percona.com/redir/downloads/percona-release/debian/latest/percona-release_0.1-4.jessie_all.deb
dpkg -i percona-release_0.1-4.jessie_all.deb

aptitude install -y apache2 apache2-bin apache2-data apache2-dev apache2-mpm-event \
apache2-mpm-itk apache2-mpm-prefork apache2-mpm-worker apache2-utils apachetop \
libapache2-mod-encoding php5 php5-cli php5-curl php5-dev php5-gd php5-geoip php5-imagick php5-imap \
php5-intl php5-json php5-mcrypt php5-memcache php5-memcached php5-mhash php5-mongo php5-mysqlnd \
php5-readline php5-redis php5-solr php5-sqlite php5-ssh2 php5-stomp php5-xdebug php5-xmlrpc \
php5-xsl php-pear libapache2-mod-php5 percona-server-server-5.6 percona-server-client-5.6 \
percona-server-test-5.6 percona-toolkit

